<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
<title>首页</title>
<link href="../css/bootstrap.css" rel="stylesheet" type="text/css" media="all">
<link href="../css/style.css" rel="stylesheet" type="text/css" media="all" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
   function help(){
     var help="${userName}";
	  if(help==""){
	  alert("请先注册/登录");
	  return false;
	  }else{
		  return true;
	  }
  }
  function service(){
	  var service="${userName}";
	  if(service==""){
	  alert("请先注册/登录");
	  return false;
	  }else{
		  return true;
	  }
  }
</script>
</head>
  <body>
    <div class="banner1">
			<div class="container">
				<div class="lar" style="margin-right:-170px;">
				<c:choose>
				   <c:when test="${userName==null}">
				   <ul class="lr"><a href="login.jsp">登录</a> | <a href="register.jsp">注册</a>
				   </c:when>
				   <c:otherwise>
				   <ul class="lr"><a href="help_logout?userName=${userName}">注销</a> | <a href="personly_lookPersonlyCenter?userName=${userName}">个人中心</a> | <a href="updatePassword.jsp">安全中心</a>
				   </c:otherwise>
				</c:choose>
					
			  <c:if test="${userName!=null}">
                <span >欢迎${userName}</span>
              </c:if>
              
               <c:if test="${degree=='VIP1'}">
                <span >(管理员)</span>
              </c:if>
              
				</div>
			</div>
		</div>
		<!-- header -->
		<!-- nav -->
		<div class="container">
			<div class="navigation">
				<div class="navigation-bar">
					<div class="head-nav">
						<span class="menu"> </span>
						<ul class="cl-effect-1">
							<li><a href="home_lookContent">首页</a>
							</li>
							<li><a href="help_lookInformations?userName=${userName}" onclick="return help()">在线求助</a></li>
							<li><a href="service_helpContent?userName=${userName}" onclick="return service()">在线服务</a></li>
							<div class="clearfix"></div>
						</ul>
					</div>
				
					<div class="search2">
						<form>
							<input type="text" value="请输入关键字" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '搜索';}">
							<input type="submit" value="">
						</form>
					</div>
					<div class="clearfix"> </div>
				</div>
			</div>
		</div>
  </body>
</html>
